package com.iplatform.auth.feign;

import com.iplatform.module.privilege.PriManagerBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("iplatform-security")
public interface SecurityClient {

	@RequestMapping(value = "/api/detach/manager/{loginName}", method = RequestMethod.GET)
	public ResponseEntity<PriManagerBean> getUserInfoByLoginName(@PathVariable(value = "loginName") String loginName);
}
